Skip to content

Update gh-aw docs for setup prerequisites and triggers#1284

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
docs/update-gh-aw-setup-triggers-1280-5691a189b4d11132
Open

Update gh-aw docs for setup prerequisites and triggers#1284
github-actions[bot] wants to merge 2 commits into
mainfrom
docs/update-gh-aw-setup-triggers-1280-5691a189b4d11132

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • Update docs/developing.md so gh-aw release builds document curl/wget for the official binary and make Go optional for non-release compiler builds.
  • Update the gh-agent workflow architecture docs to describe source-template comment/review/discussion triggers while preserving the role of example.yml trigger files.

Validation

  • UV_CACHE_DIR=/tmp/gh-aw/agent/uv-cache make docs-build

Closes #1280.


What is this? | From workflow: Trigger Docs Patrol

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v1v

v1v commented Jul 17, 2026

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the merge conflict in docs/workflows/gh-agent-workflows.md by merging origin/main and keeping the PR's updated layer 1 description (which adds the detail about issue_comment/pull_request_review_comment/discussion_comment triggers). Merge commit: a6621e7.

Copilot finished work on behalf of v1v July 17, 2026 07:31
Copilot AI requested a review from v1v July 17, 2026 07:31
@v1v
v1v marked this pull request as ready for review July 17, 2026 13:58
@v1v
v1v requested a review from fr4nc1sc0-r4m0n July 17, 2026 13:58
@github-actions github-actions Bot added the small_boom Small PR blast radius; usually low human-review need label Jul 17, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes: the updated documentation contains a workflow-layer claim that does not match the current source templates, and the new optional-Go prerequisite leaves the verification instructions failing on supported release setups.


What is this? | From workflow: Trigger PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.


1. **Workflow** (`gh-aw-*.md` -> `gh-aw-*.lock.yml`): The agent logic, compiled by `gh-aw`. Triggers only on `workflow_call` with standard inputs (`additional-instructions`, `setup-commands`).
2. **Trigger** (`<name>/example.yml`): A plain YAML file that defines the actual event triggers (schedule, PR events, slash commands, etc.) and calls the compiled `.lock.yml` via `uses:`. These serve as both examples for consumers and dogfood for this repo (copied to `.github/workflows/trigger-*.yml` by `scripts/dogfood.sh` for workflows not listed in `EXCLUDED_WORKFLOWS`).
1. **Workflow** (`gh-aw-*.md` -> `gh-aw-*.lock.yml`): The agent logic, compiled by `gh-aw`. Workflows expose `workflow_call` with standard inputs (`additional-instructions`, `setup-commands`) and a `COPILOT_GITHUB_TOKEN` secret. Some source templates also declare direct comment/review/discussion triggers (`issue_comment`, `pull_request_review_comment`, `discussion_comment`) so the compiled workflow can be activated by reactions with the required permissions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Please do not document direct event triggers or a COPILOT_GITHUB_TOKEN secret on source templates unless those files actually declare them. For example, .github/workflows/gh-aw-mention-in-pr.md:30-32 has only workflow_call, while gh-agent-workflows/mention-in-pr/example.yml:2-6 owns the issue_comment and pull_request_review_comment triggers; gh-agent-workflows/DEVELOPING.md:36 also states templates trigger only via workflow_call. As written, maintainers may edit the wrong layer and expect direct activation that never occurs.

Comment thread docs/developing.md
## Prerequisites

- [Go](https://go.dev/dl/) — required by `make setup` to build the `gh-aw` compiler
- [Go](https://go.dev/dl/) — optional; only needed for non-release gh-aw compiler builds

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Make the verification step consistent with the new optional prerequisite. On a clean release-based setup, make setup can install the official .bin/gh-aw without Go (see Makefile:143-146), but the next documented command still unconditionally runs go version at line 22 and fails when Go is absent. Please verify curl/wget (and optionally gh) here, or make the Go check conditional for source builds.

@github-actions github-actions Bot mentioned this pull request Jul 20, 2026

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small_boom Small PR blast radius; usually low human-review need

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs-patrol] Update docs for gh-aw setup prerequisites and workflow triggers

3 participants